POV-Ray : Newsgroups : povray.binaries.images : test for outline (25 kbu) : test for outline (25 kbu) Server Time
8 Jul 2024 10:00:47 EDT (-0400)
  test for outline (25 kbu)  
From: Wlodzimierz ABX Skiba
Date: 4 Jan 2001 12:08:27
Message: <3a54ae0b@news.povray.org>
this was made just for fun to test possibilities of proximity pattern
perhaps somebody want improve or/and simplify this stuff for 3D becouse my
current flat usage as pigment should be rather replaced with set of trace of ttf
+ post_process with outline + image_map in scene

unfortunatly ttf font was damaged on S

my picture was traced with winmegapov on old pentium 120 ~9 hours

#macro Outline( Object , Outside , Outline, Inside , Z , N , B , W )
  #local F1=function{pigment{proximity{Object,1 samples N sample_bailout B
max_density W*0.51 type 1 method 3 sides 2}}}
  #local F2=function{pigment{object{Obj color 0 color 1}}}
  #local F3=function{if(F1(x,y,z)-(W/2),if(F2(x,y,z)-0.5,1,0),0.5)}
  pigment{ function{ F3(x,y,Z) } color_map {[0 Outside][0.5 Outline][1
Inside]} }
#end

ABX


Post a reply to this message


Attachments:
Download 'outline.png' (26 KB)

Preview of image 'outline.png'
outline.png


 

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.